package com.shenfa.bean;

/**
 * 预印纸信息基础表映射类
 * 
 * @author longchensan create by 2011-8-28
 * 
 */
public class Paper {

	private String pid;// 预印纸ID
	private String paper_no; // 预印纸编号
	private String paper_name; // 预印纸名称
	private int paper_weight; // 克重
	private String person_no; // 人员编号
	private String create_time; // 创建时间
	private String period_begin;//有效开始月
	private String period_end;//有效截止月
	private String period_day;//账单日
	
	private String businpnt_name;	// 外包商名称
	private String businpnt_no;// 外包商编号

	@Override
	public String toString() {
		return "pid="+pid+",paper_no="+paper_no+",paper_name="+paper_name+",person_no="+person_no+",create_time="+create_time+",paper_weight="+paper_weight
			+",period_begin="+period_begin+",period_end="+period_end+",period_day="+period_day;
	}

	public Paper() {
	}

	public String getPaper_no() {
		return paper_no;
	}

	public void setPaper_no(String paperNo) {
		paper_no = paperNo;
	}

	public String getPaper_name() {
		return paper_name;
	}

	public void setPaper_name(String paperName) {
		paper_name = paperName;
	}

	public int getPaper_weight() {
		return paper_weight;
	}

	public void setPaper_weight(int paperWeight) {
		paper_weight = paperWeight;
	}

	public String getPerson_no() {
		return person_no;
	}

	public void setPerson_no(String personNo) {
		person_no = personNo;
	}

	public String getCreate_time() {
		return create_time;
	}

	public void setCreate_time(String createTime) {
		create_time = createTime;
	}
	
	public String getPeriod_begin() {
		return period_begin;
	}

	public void setPeriod_begin(String period_begin) {
		this.period_begin = period_begin.substring(0, 7);
	}

	public String getPeriod_end() {
		return period_end;
	}

	public void setPeriod_end(String period_end) {
		this.period_end = period_end.substring(0, 7);
	}

	public String getPeriod_day() {
		return period_day;
	}

	public void setPeriod_day(String period_day) {
		if(period_day.length() == 2){
			this.period_day = period_day;
		} else {
			this.period_day = period_day.substring(8, 10);
		}
	}
	
	public String getBusinpnt_no() {
		return businpnt_no;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public void setBusinpnt_no(String businpnt_no) {
		this.businpnt_no = businpnt_no;
	}

	public String getBusinpnt_name() {
		return businpnt_name;
	}

	public void setBusinpnt_name(String businpnt_name) {
		this.businpnt_name = businpnt_name;
	}

}
